home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12108 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: HERCULES.CS.UREGINA.CA!wright
  2. From: wright@HERCULES.CS.UREGINA.CA (Shayne G. Wright)
  3. Newsgroups: comp.os.linux.development.apps,comp.lang.c
  4. Subject: Questions about include files, and make file error
  5. Followup-To: comp.lang.c
  6. Date: 29 Mar 1996 05:03:51 GMT
  7. Organization: University of Regina, Dept. of Computer Science
  8. Sender: Shayne G. Wright
  9. Message-ID: <4jfqvn$gb6@sue.cc.uregina.ca>
  10. NNTP-Posting-Host: hercules.cs.uregina.ca
  11. Summary: How to access subdirectories of /usr/include and what is this ?
  12.  
  13.     Hi
  14.  
  15.         I have two questions about C programming, the
  16.     first is for general interest, the second concerns my
  17.     inability to compile procps-0.99 (the ps, top, watch,
  18.     etc. processor utilities). I am using GCC-2.7.0 on
  19.     a system running Linux-1.3.72
  20.  
  21.         The first question is, can it be setup so that
  22.     an #include <ncurses.h> statement, or similar, would
  23.     cause the compiler to look in /usr/include/ncurses
  24.     or any other subdirectory, or do I have to make use of
  25.     symbolic links and/or move the *.h files to /usr/include/
  26.  
  27.         The second question is, is there anything wrong
  28.     with this line from a Makefile
  29.  
  30.     ld -shared,-Wl,-soname,$(SONAME) -o $@ $^
  31.  
  32.         Whenever I reach this part of the compilation
  33.     I receive the following message :
  34.  
  35.  
  36. Script started on Thu Mar 28 21:25:03 1996
  37. krusty[proc]=2=>>make
  38. ld -shared -Wl,-soname,libproc.so.0.99 -o libproc.so.0.99 alloc.o 
  39. compare.o devname.o output.o pwcache.o readproc.o signals.o snap.o 
  40. status.o sysinfo.o version.o whattime.o
  41. ld: unrecognized option `-Wl,-soname,libproc.so.0.99'
  42. make: *** [libproc.so.0.99] Error 1
  43. krusty[proc]=3=>>exit
  44. Script done on Thu Mar 28 21:25:26 1996
  45.  
  46.  
  47.             As always my thanks
  48.             Take Care 
  49.             Shayne
  50.